package demo02;

public class StateOff extends StateBubble {
    private Bubble bubble;

    public StateOff() {
    }

    public StateOff(Bubble bubble) {
        this.bubble = bubble;
    }

    @Override
    public void on() {
        System.out.println("bubble 已经 on");
    }

    @Override
    public void off() {

        bubble.setStateBubble(bubble.getStateOff());
    }
}
